﻿using CrashMeManaged;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace CrashMe_AppDomain
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
            Exception e = GetException();

            throw e;
        }

        private static Exception GetException()
        {
            CrashMeWindow w = new CrashMeWindow();

            w.ShowDialog();

            return w.ExceptionToTrow;
        }
    }
}
